<?php
require_once($_SERVER['DOCUMENT_ROOT'].'/ukkepuk/source/php/classes/model/AbstractEntity.php'); 
require_once($_SERVER['DOCUMENT_ROOT'].'/ukkepuk/source/php/classes/utils/CalendarUtils.php'); 
/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of Diapers
 *
 * @author virtual
 */
class Diapers extends AbstractEntity {
    private $kidsId;
    private $timestamp; //date object
    private $type;
    
    public function getKidsId() {  return $this->kidsId;    }
    //public function getTimestamp() {  return $this->timestamp;    }
    public function getType() {  return $this->type;    }
    
    public function setType($type) { $this->type = $type; }
    public function setTimestamp($timestamp) { $this->timestamp = $timestamp; }
    public function setKidsId($kidsId) { $this->kidsId = $kidsId; }
    
    public function setTime($time) {
        $this->timestamp = CalendarUtils::createDateFromTime($time);
    }
    public function getTimestampString() {
        return CalendarUtils::transformDateToTimestamp($this->timestamp);
    }
    public function getTime() {
        return CalendarUtils::transformDateToTime($this->timestamp);
    }
    
}

?>
